From: Ewan Mellor Date: Tue, 2 Jan 2007 14:46:13 +0000 (+0000) Subject: Reset the option-parsing object before using it -- this means that the X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15422^2~101 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=7f015ff4a50c366e94ad4955c44972a1adf5bf47;p=xen.git Reset the option-parsing object before using it -- this means that the option parsing works when using xm shell. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xm/migrate.py b/tools/python/xen/xm/migrate.py index 72aca71932..2b77e6b1ab 100644 --- a/tools/python/xen/xm/migrate.py +++ b/tools/python/xen/xm/migrate.py @@ -52,6 +52,7 @@ def help(): def main(argv): opts = gopts + opts.reset() args = opts.parse(argv) if len(args) != 2: diff --git a/tools/python/xen/xm/shutdown.py b/tools/python/xen/xm/shutdown.py index b5542d9611..88d36dfba1 100644 --- a/tools/python/xen/xm/shutdown.py +++ b/tools/python/xen/xm/shutdown.py @@ -118,6 +118,7 @@ def main_dom(opts, args): def main(argv): opts = gopts + opts.reset() args = opts.parse(argv) if opts.vals.help: return